Import('RTT_ROOT')
Import('rtconfig')
from building import *


cwd = GetCurrentDir()
#print("cwd" + cwd)
#src	= Glob('modules/*.c') + Glob('rtt/*.c') + Glob('packages/lfs/*.c')
CPPPATH = [cwd + "/include"]

objs = []
list = os.listdir(cwd)

for d in list:
    path = os.path.join(cwd, d)
    if not os.path.isdir(path) :
        continue
    if os.path.isfile(os.path.join(path, 'SConscript')):
        objs = objs +  SConscript(os.path.join(d, 'SConscript'))

Return('objs')
